//
//  JFAlertAction.m
//  弹窗哈哈哈
//
//  Created by Alan Wang on 2018/11/8.
//  Copyright © 2018 kuaijiankang. All rights reserved.
//

#import "JFAlertAction.h"
#import "JFKitPri.h"

@implementation JFAlertAction
-(instancetype)init{
    self = [super init];
    if(self){
        self.titleFont = [UIFont systemFontOfSize:14];
        self.titleColor = [UIColor colorWithHexString:@"#FC724C"];
        self.enable = YES;
        self.tag = 0;
    }
    return self;
}
+(JFAlertAction*)actionWithTitle:(NSString*)title titleColor:(UIColor*)titleColor titleFont:(UIFont*)titleFont ext:(id)ext actionBlock:(AlertActionBlock)block{
    JFAlertAction * action = [[JFAlertAction alloc] init];
    action.title = title;
    if(titleColor){
        action.titleColor = titleColor;
    }
    if(titleFont){
        action.titleFont = titleFont;
    }
    action.actionBlock = block;
    action.ext = ext;
    action.enable = YES;
    action.tag = 0;
    return action;
}
@end
